import MenuService from '../services/MenuService.js'
import Resolve from '../utils/resolve.js'

const res = new Resolve()

class MenuController
{
    async getroutes(ctx)
    {
        const { id } = ctx.auth

        const list = await MenuService.getUserMenuList(id)
        ctx.body = res.json({ list })
    }
}
export default MenuController
